package com.chuzhiyun.chengguoxy.utlis;

import android.view.Gravity;
import com.chuzhiyun.chengguoxy.R;
import com.hjq.toast.ToastUtils;

public class ToastCustom {
    public static void showSuccessToast(String message){
        ToastUtils.setView(R.layout.toast_success_view);
        ToastUtils.setGravity(Gravity.CENTER_VERTICAL, 0, -200);
        ToastUtils.show(message);
    }

    public static void showErrorToast(String message){
        ToastUtils.setView(R.layout.toast_error_view);
        ToastUtils.setGravity(Gravity.CENTER_VERTICAL, 0, -200);
        ToastUtils.show(message);
    }

    public static void showMessageToast(String message){
        ToastUtils.setView(R.layout.toast_custom_view);
        ToastUtils.setGravity(Gravity.CENTER, 0, 0);
        ToastUtils.show(message);
    }
}
